package com.lwc.service;


import com.lwc.bean.OrderDetail;
import com.lwc.config.FeignConfig;
import lombok.experimental.FieldDefaults;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value="sc-goods",configuration = {FeignConfig.class})   //声明指定服务名称   声明输出级别
public interface GoodsService {

    @PutMapping("/up")
    String update(@RequestBody List<OrderDetail> orderDetails);
}
